package com.cloudputing.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cloudputing.domain.Hacker;
import com.cloudputing.service.HackService;

@Controller
public class HackController {

	@Autowired
	private HackService hackService;
		
	@RequestMapping(value = "/hack/attack", method=RequestMethod.GET)
	@ResponseBody
	public List<Hacker> attack() {
		return hackService.findAll();
	}
}
